import AboutUs from "./AboutUs"
import ContactUs from "./ContactUs"

const views = []
views["AboutUs"] = AboutUs
views["ContactUs"] = ContactUs

const MatchComponent = (dialogFlag) => {

    function getView() {
        let view = <></>

        if (views[dialogFlag]) {
            view = views[dialogFlag]
        }

        return (
            view
        )
    }

    return getView()
}
export default MatchComponent 